ifBeanValue

Class: com.microstrategy.web.app.taglibs.IfBeanValueTag

Usage:

This custom tag retrieves the bean indicated on the name attribute value and evaluates the property indicated and compares it against the value requested. If no value is indicated, then it is assumed the method called returns a boolean and this is the result of the evaluated condition. Note: The property attribute has to be the complete method name if specified. For example:
 <web:ifBeanValue name="projectStatus" property="isStatusShown">
   <web:then>
     Since no value was specified on the tag, it will display some contents if the isStatusShown property of the projectStatus bean returns True
   </web:then>
 </web:ifBeanValue>

 <web:ifBeanValue name="frame" property="getExecutionMode" value="0">
   <web:then>
     Display some contents here if the getExecutionMode call on the bean named frame returned a value equal to 0
   </web:then>
 </web:ifBeanValue>
 


Name Required? Description
bean false Indicates the name of the bean to search for, which will be used for evaluating the condition.
The name of the bean indicated has to be a valid bean on the page being displayed, otherwise the condition evaluation will return False by default.
name false Indicates the name of the bean to search for, which will be used for evaluating the condition.
The name of the bean indicated has to be a valid bean on the page being displayed, otherwise the condition evaluation will return False by default.
property false Indicates the property or method to call from the bean specified on the name attribute value.
Usage:
The value to assign to this attribute has to be the exact name of the method that will be called for evaluation. If the method is not found, then the condition will by default return False
value false Indicates the value that will be compared with the tag's property argument.
The value assigned to this attribute will be specified as a String, therefore, the resulting value from calling the method specified on the property attribute will also be translated into a String. These two values will be compared and from there the resulting condition value will be obtained.